.log-viewer {
  background-color: #f5f5f5;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.log-viewer h2 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
}

.log-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.log-controls button {
  padding: 8px 16px;
  background-color: #4a90e2;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.log-controls button:hover {
  background-color: #357ab8;
}

.log-controls button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.log-controls button.active {
  background-color: #45a049;
}

.log-container {
  height: 500px;
  overflow-y: auto;
  background-color: #1e1e1e;
  border-radius: 4px;
  padding: 10px;
  font-family: 'Courier New', Courier, monospace;
}

.log-content {
  margin: 0;
  color: #f8f8f8;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
}

.error-message {
  color: #d9534f;
  margin-bottom: 15px;
  padding: 10px;
  background-color: #f8d7da;
  border-radius: 4px;
  border: 1px solid #f5c6cb;
}

.no-logs {
  color: #999;
  text-align: center;
  margin-top: 200px;
}

/* 日志颜色样式 */
.log-content .info {
  color: #4a90e2;
}

.log-content .warning {
  color: #f0ad4e;
}

.log-content .error {
  color: #d9534f;
}

.log-content .success {
  color: #5cb85c;
}